
DESTDIR=

NAME=raklur
RUBYVERSION=1.8    

BINDIR=$(DESTDIR)/usr/bin
MANDIR=$(DESTDIR)/usr/share/man
LIBDIR=$(DESTDIR)/usr/lib/ruby/$(RUBYVERSION)
DOCDIR=$(DESTDIR)/usr/share/doc/$(NAME)    

RDOC=rdoc

all:

install: doc
	# install binaries
	# install documentation
	rm -fr $(DOCDIR)
	mkdir -p $(DOCDIR)
	cp -a doc $(DOCDIR)

uninstall:

.PHONY: doc
doc:
	#txt2tags -t html README.t2t
	rm -fr doc/api
	$(RDOC) \
		--promiscuous \
		--inline-source \
		--line-numbers \
		-o doc/api src/ lib/ bin/
	# --diagram  

doc-view:
	xdg-open doc/api/index.html
